package com.easy.easy.dao;

import com.easy.easy.bean.Useraddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserAddressDao {
    int add(@Param("address") Useraddress address);
    int edit(@Param("address") Useraddress address);
    int delete(@Param("id") int id);
    Useraddress getAddressByID(@Param("id") int id);
    List<Useraddress> getAddressByUserID(@Param("userid") int userid);
    int cancelDefault(@Param("id") int id);
    int setDefault(@Param("userid") int userid,@Param("id") int id);
}
